package com.lbj.dao.user;

import com.lbj.bean.Role;
import com.lbj.bean.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    User getUser(Connection connection, String userCode) throws SQLException;

    int updatePwd(Connection connection, String userId, String password) throws SQLException;

    int getUserCount(Connection connection, String username, int userRole) throws SQLException;

    List<User> getUserList(Connection connection, String username, int userRole, int index, int pageSize) throws SQLException;

}
